package tjs.study.notes.dubbo.consume;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import tjs.study.notes.dubbo.api.UserService;

@RestController
public class UserController {

   @Reference
   private UserService userService;

    @GetMapping("/sayHello")
    public String sayHello(){
        return userService.sayHello();
    }
}